//
//  LAGTypes.h
//  LolaageBasic
//
//  Created by 罗亮富 on 15/4/23.
//  Copyright (c) 2015年 Lolaage. All rights reserved.
//


#ifndef LolaageBasic_LollaageTypes_h
#define LolaageBasic_LollaageTypes_h

#include <_types.h>

typedef char                  S8;
typedef char *                PS8;
typedef unsigned char         U8;
typedef unsigned char *       PU8;

typedef int16_t               S16;
typedef S16 *                 PS16;
typedef uint16_t              U16;
typedef uint16_t *            PU16;

typedef int32_t               S32;
typedef S32 *                 PS32;
typedef uint32_t              U32;
typedef U32 *                 PU32;

typedef int64_t               S64;
typedef S64 *                 PS64;
typedef uint64_t              U64;
typedef U64 *                 PU64;


typedef double                DOUBLE;
typedef float                 FLOAT;


typedef char EDIAN_T;
#define L_ED  2 //little edian
#define H_ED  1 //big edian


extern void changeValEdian(void *val, int size, EDIAN_T edian);

extern EDIAN_T judgeEndian(void);

#endif
